<?php
class uploader extends SClass {

    public function process() {
        $files = ServiceUtils::GetFactory()->getFilesService()->getFilesAll();
        $fileArray = array();
        
        while ($x = $files->getNext()) {
            $fileArray[] = array(
                'id' => $x->getId(),
                'url' => '/media/files/'.$x->getFilename(),
                'alias' => $x->getFilealias(),
                'date' => $x->getCreatedate(),
                
    			'delete' => Engine_LinkMaker::GetURLByContentID(
    				'controlpanel-uploader-del',
    				$x->getId(),
    				'id'),
            );
        }
        
        $this->assign('filesArray', $fileArray);
        $this->assign($ks, PROJECT_PATH);
    }

}


